﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using SoTools.Communicator.Messages;

namespace SoSlam.Common.Communication.GameMessages
{
    [DataContract]
    public class PowerupMessage : BaseMessage
    {
        [DataMember]
        public List<PowerupState> Powerups { get; set; }
    }

    [DataContract]
    public class PowerupState
    {
        [DataMember]
        public int PowerupId { get; set; }

        [DataMember]
        public float X { get; set; }

        [DataMember]
        public float Y { get; set; }

        [DataMember]
        public bool IsHit { get; set; }

        [DataMember]
        public PowerupType Type { get; set; }
    }

    [DataContract]
    public enum PowerupType
    {
        [EnumMember]
        Gold,
        [EnumMember]
        Silver,
        [EnumMember]
        Power
    }
}
